//引入路由组件
import Home from '@/pages/tsd/Home.vue';
import Category from '@/pages/tsd/Category.vue';

import Popup  from '@/pages/tsd/Popup.vue';
import Cart from '@/pages/zd/Cart';
import Channel from '@/pages/zd/Channel'


import User from '@/pages/xjh/User.vue';
import Productdetail from '@/pages/xjh/Productdetail.vue';
import Topic from '@/pages/xjh/Topic.vue';
import Brand from '@/pages/xjh/Brand.vue';

//路由配置信息
export default [
    {
        path: '/',//访问根路径为首页
        redirect: '/home'
    },
    {
        path: '/home',//首页
        name: 'home',
        component: Home,
    },
    {
        path: '/popup',//首页
        name: 'popup',
        component: Popup,
    },
    {
        path: '/topic',//主题
        name: 'topic',
        component: Topic
    },
    {
        path: '/category',
        name: 'category',
        component: Category,
    },
    {
        path: '/channel/:id',
        name: 'channel',
        component: Channel,
    },
    {
        path: '/cart',
        name: 'cart',
        component: Cart,
    },
    {
        path: '/user',
        name: 'User',
        component: User,
    },
    {
        path:'/Brand/:id',
        name: 'Brand',
        component: Brand,
    },
    {
        path:'/productdetail/:id',
        name: 'Productdetail',
        component: Productdetail,
    }
]